package com.zhb.zhbojbackendcommentservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhb.zhbojbackendmodel.model.dto.comment.CommentAddRequest;
import com.zhb.zhbojbackendmodel.model.entity.Comment;
import com.zhb.zhbojbackendmodel.model.entity.User;
import com.zhb.zhbojbackendmodel.model.vo.CommentVO;

import java.io.Serializable;
import java.util.List;

public interface CommentService extends IService<Comment> {
    boolean addComment(CommentAddRequest request, User loginUser);

    Page<CommentVO> listCommentByQuestionId(Long questionId, long pageNum, long pageSize);
}